<template>
  <div>
    <div class="breadcrumb-nav-wrapper px1000 mt20 mb20">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">
          首页
        </el-breadcrumb-item>
        <el-breadcrumb-item>
          公告
        </el-breadcrumb-item>
        <el-breadcrumb-item>{{ item.title }}</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="news_content px1000 mt20">
      <div class="con p10">
        <div class="detail content">
          <h1>{{ item.title }}</h1>
          <h3 class="cl clearfix">
            <span class="fr">{{ item.updated | date }}</span>
          </h3>
          <div class="clearfix" />
          <div id="content" class="news_detail">
            <p v-html="item.content" />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import Api from '~/api'
export default {
  name: 'NewsDetail',
  async asyncData ({ route }) {
    const id = route.params.id
    const result = await Api.getNoticeDetail(id)
    return { item: result.data }
  },
  head: {
    title: '英联智融|公告'
  }
}
</script>
<style lang="scss" scoped>
.p10 {
  padding: 10px;
}

.con {
  background: #fff;
}

.detail {
  font-size: 16px;
  padding: 0 15px 20px 15px;

  h1 {
    background: none;
    font-size: 24px;
    display: block;
    line-height: 50px;
    color: #AE2E2D;
    text-align: center;
    font-family: "微软雅黑",sans-serif;
  }
  .cl{
    span{
      margin-right: 10px;
    }
  }

  h3 {
    font-size: 13px;
    font-weight: normal;
    padding: 20px 0 10px 0;
    color: #999;
    border-bottom: #D9D7CA solid 1px;
    line-height: 40px;
  }

  .news_detail {
    padding: 20px 0 20px 0;
    color: #333;

    p {
      line-height: 26px;
      padding-bottom: 15px;
      text-indent: 2em;
    }
  }
}

.content {
  zoom: 1;
  clear: both;
  min-height: 400px;
}

.news_content{
  min-height: 700px;
}

</style>
